package com.kinoshita.admin.api.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.kinoshita.common.domain.BaseDO;

import java.util.List;

public class PermissionDO extends BaseDO {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    private String code;

    private String name;

    private String method;

    private String icon;

    private String requestUrl;

    private Integer sort;

    private PermissionDO permissionDO;

    private List<PermissionDO> permissionList;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public PermissionDO getPermissionDO() {
        return permissionDO;
    }

    public void setPermissionDO(PermissionDO permissionDO) {
        this.permissionDO = permissionDO;
    }

    public List<PermissionDO> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<PermissionDO> permissionList) {
        this.permissionList = permissionList;
    }
}
